var mongoose=require('mongoose');
var config=require('../config/config');


mongoose.connect("mongodb://"+config.dbHost+"/"+config.dbName, function (err) {
    if(err)
        throw err;
    console.log('db connect ok');
});

module.exports = mongoose;
